package com.csust.automaticteach.mapper;

import com.csust.automaticteach.model.entity.Resource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author 钰玟
* @description 针对表【t_resource(资源表)】的数据库操作Mapper
* @createDate 2025-07-16 22:20:24
* @Entity com.csust.automaticteach.model.entity.Resource
*/
public interface ResourceMapper extends BaseMapper<Resource> {

    @Select("SELECT COUNT(DISTINCT ${column}) FROM t_resource")
    int countDistinct(@Param("column") String column);
}




